<?php
//模版
$this->group(['prefix' => 'admin/configs/smstpl'], function() {
    $this->get('/view/list', 'SmsTplController@getLists');
	$this->get('/view/{id}', 'SmsTplController@getOne')->where('id','[0-9]+');

	//获取所有
	$this->get('/view/all', 'SmsTplController@getAll');

	//验证服务商下模块唯一
	$this->get('/view/check/module', 'SmsTplController@checkUniqueModule');
	//更新
	$this->post('/update', 'SmsTplController@postOne');
	//发送短信
	$this->post('/update/send', 'SmsTplController@sendTpl');
	
	//删除
	$this->delete('/delete/{id}', 'SmsTplController@deleteOne')->where('id','[0-9]+');
});
